﻿using AutoMapper;
using Basefr.App.Dtos;
using Paas.App.Interface.Meta.Dtos;
using Paas.Core.Meta.Entities;
using Paas.Core.MetaTables.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Paas.App.Interface.MetaTables.Dtos
{
    [AutoMap(typeof(MetaTableField))]
    public class MetaTableFieldDto : DtoBase<Guid>
    {
        /// <summary>
        /// 字段所属元数据表格Id
        /// </summary>
        public Guid? MetaTableId { get; set; }

        public MetaTableDto MetaTable { get; set; }

        /// <summary>
        /// 字段所属元数据字段Id
        /// </summary>
        public Guid? MetaFieldId { get; set; }

        public MetaFieldDto MetaField { get; set; }

        /// <summary>
        /// 元数据字段重命名，用于显示在表格上，默认中文
        /// </summary>
        public string ReLabel { get; set; }
    }
}
